import request from '@/utils/request'

const getpersonnelListService = () => {
	return request.get('/personnel/list')
}
const findByPageService = (pageNum, pageSize) => {
	return request.get(`/personnel/findByPage/${pageNum}/${pageSize}`)
}
const searchService = (pageNum, pageSize, personnel) => {
	return request.post(`/personnel/search/${pageNum}/${pageSize}`, personnel)
}
const addpersonnelService = (personnel) => {
	return request.post('/personnel/add', personnel)
}
const editpersonnelService = (personnel) => {
	return request.put('/personnel/update', personnel)
}
const deletepersonnelService = (ids) => {
	return request.delete(`/personnel/delete/${ids}`)
}

export default {
	getpersonnelListService,
	findByPageService,
	searchService,
	addpersonnelService,
	editpersonnelService,
	deletepersonnelService,
}
